package com.dou.sample.opengl_project.utls;

/**
 * Created by Dou on 2018/1/16.
 */

public class GeoMetry {
    public static class Point{

        public float x,y,z = 0.0f;

        public Point(float x, float y, float z){
            this.x = x;
            this.y = y;
            this.z = z;
        }

        public Point translateY(float distance){
            return new Point(x, y + distance, z);
        }
    }

    public static class Circle{
        public float radius;
        public Point center;

        public Circle(Point center, float radius){
            this.center = center;
            this.radius = radius;
        }

        public Circle scale(float scale){
            return new Circle(center, scale * radius);
        }
    }

    public static class Cylinder{
        public Point center;
        public float radius;
        public float height;

        public Cylinder(Point center, float radius, float height){
            this.center = center;
            this.radius = radius;
            this.height = height;
        }



    }
}
